<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.printing.mathml&rdquo;</title>
        </head>
        <body><h1 class="module">Module s.p.mathml</h1><span id="part">Part of <a href="sympy.printing.html">sympy.printing</a></span><div class="toplevel"><div class="undocumented">Undocumented</div></div><table class="children"><tr class="class"><td>Class</td><td><a href="sympy.printing.mathml.MathMLPrinter.html">MathMLPrinter</a></td><td><div><p>A MathML printer.</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.printing.mathml.mathml">mathml</a></td><td><div><p>Returns the MathML representation of expr</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.printing.mathml.print_mathml">print_mathml</a></td><td><div><p>Print's a pretty representation of the MathML code for expr</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.printing.mathml.mathml">mathml(expr):</a></div>
            <div class="functionBody"><div><p>Returns the MathML representation of expr</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.printing.mathml.print_mathml">print_mathml(expr):</a></div>
            <div class="functionBody"><div><p>Print's a pretty representation of the MathML code for expr</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">from</span> sympy <span class="py-keyword">import</span> *
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">from</span> sympy.printing.mathml <span class="py-keyword">import</span> print_mathml
<span class="py-prompt">&gt;&gt;&gt; </span>x = Symbol(<span class="py-string">'x'</span>)
<span class="py-prompt">&gt;&gt;&gt; </span>print_mathml(x+1) <span class="py-comment">#doctest: +NORMALIZE_WHITESPACE</span>
<span class="py-output">&lt;apply&gt;</span>
<span class="py-output">    &lt;plus/&gt;</span>
<span class="py-output">    &lt;ci&gt;</span>
<span class="py-output">            x</span>
<span class="py-output">    &lt;/ci&gt;</span>
<span class="py-output">    &lt;cn&gt;</span>
<span class="py-output">            1</span>
<span class="py-output">    &lt;/cn&gt;</span>
<span class="py-output">&lt;/apply&gt;</span></pre>
</div></div>
            </div></body>
        